<textarea<?php foreach($attributes as $name => $attr): ?> <?php echo $name;?>="<?php echo $attr; ?>"<?php endforeach; ?>><?php echo $value; ?></textarea>